package pantomime.hardware;

public class Glove {
	public IMU oIMU;
	public FlexSensors oFlexSensor;
	
	public Glove(){
		oIMU = new IMU();
		oFlexSensor = new FlexSensors();
	}
	
	public Glove(float [] fIMU, int[] flex){
		if(fIMU.length != 6 || flex.length != 9){
			throw new IllegalArgumentException("Invalid argument for Glove constructor (float[],int[])");
		}
		oIMU = new IMU(fIMU[0], fIMU[1], fIMU[2], fIMU[3], fIMU[4], fIMU[5]);
		oFlexSensor = new FlexSensors(flex[0], flex[1], flex[2], flex[3], flex[4], flex[5], flex[6], flex[7], flex[8]);
	
	}
}
